<template>
  <h2>我是a组件</h2>
</template>



<script lang="ts" setup>
  import {onActivated,onDeactivated} from "vue"

  console.log("我是A组件")

  onActivated(() => {
    console.log("A组件激活")
  })

  onDeactivated(() => {
    console.log("A组件失活")
  })

</script>


<style>

</style>